#include"Polygon.h"
void Polygon::setValues(int a, int b){
	width = a;
	height = b;
}
Polygon::Polygon(int a){
	width = a;
}
Rectangle::Rectangle(int w, int h) :Polygon(w)
{
	height = h;
}

int Rectangle::area(){
	return(width*height);
}
